home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 5 Developer's Kit / vb5 dev kit.iso / dev / mailx6 / _setup.2 / Group5 / INBOXFOR.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-05-23  |  3.6 KB  |  128 lines

  1. VERSION 2.00
  2. Begin Form InboxForm 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Inbox Messages"
  6.    ClientHeight    =   3030
  7.    ClientLeft      =   1560
  8.    ClientTop       =   4875
  9.    ClientWidth     =   5970
  10.    Height          =   3405
  11.    Left            =   1515
  12.    LinkTopic       =   "Form4"
  13.    MDIChild        =   -1  'True
  14.    ScaleHeight     =   3030
  15.    ScaleWidth      =   5970
  16.    Top             =   4545
  17.    Width           =   6060
  18.    Begin MMsg MMsg1 
  19.       BindString      =   "FormTag2.MSess1"
  20.       BodyAsFile      =   0   'False
  21.       DisplayErrors   =   0   'False
  22.       DisplaySendDialog=   0   'False
  23.       EnvelopeOnly    =   0   'False
  24.       FastFetch       =   -1  'True
  25.       FetchMsgType    =   ""
  26.       Height          =   420
  27.       Left            =   4800
  28.       MarkAsRead      =   0   'False
  29.       SortMsg         =   0   'False
  30.       SuppressAttach  =   -1  'True
  31.       TimeFormat      =   "%I:%M:%S %p. %B %d, %Y "
  32.       Top             =   0
  33.       UnreadOnly      =   0   'False
  34.       Width           =   420
  35.       WorkingMsg      =   0  '0- Inbox Message
  36.    End
  37.    Begin MForm MForm1 
  38.       Height          =   240
  39.       Left            =   2160
  40.       MXFormName      =   "FormTag3"
  41.       Top             =   2280
  42.       Width           =   2295
  43.    End
  44.    Begin CheckBox SortMsg 
  45.       BackColor       =   &H00C0C0C0&
  46.       Caption         =   "Sort Inbox Message"
  47.       Height          =   375
  48.       Left            =   165
  49.       TabIndex        =   5
  50.       Top             =   30
  51.       Width           =   2175
  52.    End
  53.    Begin CheckBox UnreadMsg 
  54.       BackColor       =   &H00C0C0C0&
  55.       Caption         =   "Unread Message Only"
  56.       Height          =   375
  57.       Left            =   2445
  58.       TabIndex        =   4
  59.       Top             =   30
  60.       Width           =   2295
  61.    End
  62.    Begin CommandButton FilterMsg 
  63.       Caption         =   "&Refresh List"
  64.       Height          =   390
  65.       Left            =   3720
  66.       TabIndex        =   3
  67.       Top             =   2505
  68.       Width           =   1815
  69.    End
  70.    Begin CommandButton OpenMsgBtn 
  71.       Caption         =   "&Open Message"
  72.       Height          =   405
  73.       Left            =   1995
  74.       TabIndex        =   2
  75.       Top             =   2490
  76.       Width           =   1695
  77.    End
  78.    Begin CommandButton HideWndBtn 
  79.       Caption         =   "&Hide List"
  80.       Height          =   405
  81.       Left            =   375
  82.       TabIndex        =   1
  83.       Top             =   2490
  84.       Width           =   1575
  85.    End
  86.    Begin ListBox MsgList 
  87.       Height          =   1785
  88.       Left            =   165
  89.       TabIndex        =   0
  90.       Top             =   510
  91.       Width           =   5700
  92.    End
  93. Sub FilterMsg_Click ()
  94.     MMsg1.UnreadOnly = UnreadMsg
  95.     MMsg1.SortMsg = SortMsg
  96.     RefreshList
  97. End Sub
  98. Sub Form_Load ()
  99.     RefreshList
  100. End Sub
  101. Sub HideWndBtn_Click ()
  102.     Unload Me
  103. End Sub
  104. Sub MsgList_DblClick ()
  105.     OpenMsgBtn_Click
  106. End Sub
  107. Sub OpenMsgBtn_Click ()
  108.     Index = MsgList.ListIndex
  109.     If Index = -1 Then
  110.         MsgBox "Select a Mail Message to be opened"
  111.     Else
  112.         MMsg1.FetchMsg = Index + 1
  113.         NewMsgWnd MMsg1
  114.     End If
  115. End Sub
  116. Sub RefreshList ()
  117.     SessionForm.MousePointer = 11
  118.     MsgList.Clear
  119.     MMsg1.Action = ACTION_FINDFIRST
  120.     Do
  121.         If MMsg1.FetchMsg <> 0 Then
  122.             MsgList.AddItem MMsg1.Subject
  123.             MMsg1.Action = ACTION_FINDNEXT
  124.         End If
  125.     Loop While MMsg1.FetchMsg <> 0
  126.     SessionForm.MousePointer = 1
  127. End Sub
  128.